﻿@model IEnumerable<Web.Crew>

@{
    ViewBag.Title = "JoinedGroups";
}

<h2>Joined Groups</h2>

<table>
    <tr>
        <th>
            name
        </th>
        <th>
            Creator
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Userowner.name)
        </td>
        <td>
            @Html.ActionLink("Details", "Details", new { id=item.id }) |
            @Html.ActionLink("Leave", "Leave", new { id=item.id })
        </td>
    </tr>
}

</table>

<p>
    @Html.ActionLink("Back to Search", "Index")
</p>
